﻿using System;
using System.ComponentModel.DataAnnotations;
using EraNet.Framework;
using EraNet.Framework.Mvc;

namespace EraNet.WebApp.LMS
{
    public class LoginModel : BaseEraNetModel
    {
        public string Username { get; set; }

        [DataType(DataType.Password)]
        public string Password { get; set; }

        public bool RememberMe { get; set; }

        /// <summary>
        /// 登陆类型
        /// </summary>
        public int LoginType { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime ExpirationTime { get; set; }

        /// <summary>
        /// 学校ID
        /// </summary>
        public virtual int SchoolID { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public virtual string Sex { get; set; }

        /// <summary>
        /// 身份证
        /// </summary>
        public virtual string IDCard { get; set; }

        /// <summary>
        /// 邮件地址
        /// </summary>
        public virtual string Email { get; set; }

        /// <summary>
        /// 状态，
        /// 2.离职状态
        /// 1.正常状态，只需要驾校状态正常，就可以登陆
        /// 0.锁定状态
        /// </summary>
        public virtual int Status { get; set; }

    }
}
